/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.manager.impl;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.biz.rs.domain.bo.ManufactureRecordModifyApplyBO;
import com.xy.biz.rs.domain.query.ManufactureRecordModifyApplyQuery;
import com.xy.biz.rs.domain.converter.ManufactureRecordModifyApplyConverter;
import com.xy.biz.rs.manager.ManufactureRecordModifyApplyManager;
import com.xy.biz.rs.dao.ManufactureRecordModifyApplyDao;

/**
 *
 *
 * @author wwj
 * @date 2021-4-16
 */
@Service
public class ManufactureRecordModifyApplyManagerImpl implements ManufactureRecordModifyApplyManager {

	@Autowired
	private ManufactureRecordModifyApplyDao manufactureRecordModifyApplyDao;

	@Override
	public int saveManufactureRecordModifyApply(ManufactureRecordModifyApplyBO manufactureRecordModifyApplyBO) {
		return manufactureRecordModifyApplyDao.saveManufactureRecordModifyApply(ManufactureRecordModifyApplyConverter.toPO(manufactureRecordModifyApplyBO));
	}

	@Override
	public int saveAllManufactureRecordModifyApply(Collection<ManufactureRecordModifyApplyBO> collection) {
		return manufactureRecordModifyApplyDao.saveAllManufactureRecordModifyApply(ManufactureRecordModifyApplyConverter.toPO(collection));
	}

	@Override
	public int updateManufactureRecordModifyApply(ManufactureRecordModifyApplyBO manufactureRecordModifyApplyBO) {
		return manufactureRecordModifyApplyDao.updateManufactureRecordModifyApply(ManufactureRecordModifyApplyConverter.toPO(manufactureRecordModifyApplyBO));
	}

	@Override
	public int deleteManufactureRecordModifyApply(Long manufactureRecordModifyApplyId) {
		return manufactureRecordModifyApplyDao.deleteManufactureRecordModifyApply(manufactureRecordModifyApplyId);
	}

	@Override
	public ManufactureRecordModifyApplyBO getManufactureRecordModifyApply(Long manufactureRecordModifyApplyId) {
		return ManufactureRecordModifyApplyConverter.fromPO(manufactureRecordModifyApplyDao.getManufactureRecordModifyApply(manufactureRecordModifyApplyId));
	}

	@Override
	public List<ManufactureRecordModifyApplyBO> listManufactureRecordModifyApplyById(Collection<Long> collection) {
		return ManufactureRecordModifyApplyConverter.fromPO(manufactureRecordModifyApplyDao.listManufactureRecordModifyApplyById(collection));
	}

	@Override
	public List<ManufactureRecordModifyApplyBO> listManufactureRecordModifyApply(ManufactureRecordModifyApplyQuery query) {
		return ManufactureRecordModifyApplyConverter.fromPO(manufactureRecordModifyApplyDao.listManufactureRecordModifyApply(query));
	}

	@Override
	public int countManufactureRecordModifyApply(ManufactureRecordModifyApplyQuery query) {
		return manufactureRecordModifyApplyDao.countManufactureRecordModifyApply(query);
	}

}
